package com.aaa.controller;

import com.aaa.service.TeacherWebService;
import com.eig.common.entity.course.Teacher;
import com.eig.common.vo.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Random;

/**
 * @author ：StudentLsj（李世界）
 * @date ：Created in 2023/02/01 上午 10:43
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/teacherweb/member")
public class TeacherWebController {


    @Resource
    private TeacherWebService teacherWebService;

    @GetMapping("/getYanZhengMa/{mobile}")
    public Result getTeacherMember(@PathVariable String mobile) {
        return teacherWebService.getYanZhengMa(mobile);

    }


    /**
     * 17637971715
     * @param teacher
     * @return
     */
    @PostMapping("/qianaddTeacher")
    public Result addteacher(@RequestBody  Teacher teacher){



     return    teacherWebService.addTeacherWeb(teacher);
    }
}
